Skip to content

Conversation

@Chuseok22
Copy link
Member

@Chuseok22 Chuseok22 commented Jan 2, 2026

✨ 변경 사항


✅ 테스트


  • 수동 테스트 완료
  • 테스트 코드 완료

Summary by CodeRabbit

새로운 기능

  • 장바구니 응답에 모든 항목의 총 수량 정보가 추가되었습니다.

✏️ Tip: You can customize this high-level summary in your review settings.

@Chuseok22 Chuseok22 merged commit 377c5a2 into main Jan 2, 2026
2 of 3 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Jan 2, 2026

Caution

Review failed

The pull request is closed.

개요

카트 응답에 총 수량 필드를 추가하고, 카트 서비스에서 모든 카트 항목의 수량을 합산하여 계산하는 기능을 구현했습니다.

변경 사항

분류 / 파일 요약
CartResponse DTO
src/main/java/com/campustable/be/domain/cart/dto/CartResponse.java
totalQuantity 필드(int 타입) 추가. Lombok의 @Getter/@Setter로 자동 생성되며, 기존 필드 및 생성자 동작에 영향 없음.
CartService 로직
src/main/java/com/campustable/be/domain/cart/service/CartService.java
updateCartItemgetCart 메서드에서 카트 항목의 수량을 합산하여 totalQuantity 계산. CartResponse 빌더에 계산된 값 포함.

코드 리뷰 난이도

🎯 2 (Simple) | ⏱️ ~8 분

축하 시

🐰 털랑털랑 새 필드가 도착했네요!
총 수량을 세어 담은 장바구니,
항목 하나하나 더해지는 즐거움,
숫자 위로 토끼가 춤을 춘답니다! 🥕✨

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 86f41d2 and cadac52.

📒 Files selected for processing (2)
  • src/main/java/com/campustable/be/domain/cart/dto/CartResponse.java
  • src/main/java/com/campustable/be/domain/cart/service/CartService.java

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants